//
//  HZ_Billboard_Model.m
//  HZ_Beautiful_Music
//
//  Created by dllo on 16/4/5.
//  Copyright © 2016年 ui. All rights reserved.
//

#import "HZ_Billboard_Model.h"
#import "HZ_refsArray.h"
@implementation HZ_Billboard_Model

-(instancetype)initWithDataSource:(NSDictionary *)dataSource{
    
    self = [super init];
    
    
    if (self) {
    
        [self setValuesForKeysWithDictionary:dataSource];
        
        NSMutableArray *array = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *dic in self.refs) {
            
            HZ_refsArray *refs = [[HZ_refsArray alloc] initWithDataSource:dic];
            
            
            [array addObject:refs];
            
            
        }
        
        
        self.refs = [NSArray arrayWithArray:array];

        NSLog(@"----%@", self.refs);
    }
    
    return self;
    
    
    
    
    
    
    
}

@end
